
package com.trydofor.id.xnet;

import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.List;

import com.trydofor.id.body.shell.ShellQueryBody;

/**
 * configuration of net server
 * 
 * @author : Shi Rongjiu (www.trydofor.com)
 */
public class Config {
    
    private String                  ware;
    private List<InetSocketAddress> host = new ArrayList<InetSocketAddress>();
    private List<ShellQueryBody>    cmds = new ArrayList<ShellQueryBody>();
    
    /**
     * @return the ware
     */
    public String getWare() {
        return ware;
    }
    
    /**
     * @param ware the ware to set
     */
    public void setWare(String ware) {
        this.ware = ware;
    }
    
    /**
     * @return the commands
     */
    public List<ShellQueryBody> getCommands() {
        return cmds;
    }
    
    /**
     * @param cmd the command to add
     */
    public void addCommand(ShellQueryBody cmd) {
        cmds.add(cmd);
    }
    
    /**
     * @return the BindHosts
     */
    public List<InetSocketAddress> getBindHosts() {
        return host;
    }
    
    /**
     * @param isa the host to add
     */
    public void addBindHost(InetSocketAddress isa) {
        host.add(isa);
    }
}
